Package com.cisco.pt.ipc.sim.pdu.impl
Class EthernetHeaderImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
com.cisco.pt.ipc.sim.pdu.impl.EthernetHeaderImpl
- All Implemented Interfaces:
IPCData,EthernetHeader,Header,Pdu,Signal
- Direct Known Subclasses:
Dot1qHeaderImpl,EthernetIIHeaderImpl,IEEE802Dot3HeaderImpl,IEEE802Dot3zHeaderImpl
-
Field Summary
FieldsFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
payloadFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDstMacAddress(MACAddress dstMacAddress) voidsetFrameCheckSequence(int frameCheckSequence) voidsetSrcMacAddress(MACAddress srcMacAddress) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.HeaderImpl
getPayload, setPayloadMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Header
getPayload, setPayloadMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
dstMacAddress
-
srcMacAddress
-
frameCheckSequence
protected int frameCheckSequence
-
-
Constructor Details
-
EthernetHeaderImpl
public EthernetHeaderImpl()
-
-
Method Details
-
getDstMacAddress
- Specified by:
getDstMacAddressin interfaceEthernetHeader- Returns:
- MACAddress Returns a MACAddress
-
setDstMacAddress
- Specified by:
setDstMacAddressin interfaceEthernetHeader- Parameters:
dstMacAddress- Takes in a parameter of dstMacAddress
-
getSrcMacAddress
- Specified by:
getSrcMacAddressin interfaceEthernetHeader- Returns:
- MACAddress Returns a MACAddress
-
setSrcMacAddress
- Specified by:
setSrcMacAddressin interfaceEthernetHeader- Parameters:
srcMacAddress- Takes in a parameter of srcMacAddress
-
getFrameCheckSequence
public int getFrameCheckSequence()- Specified by:
getFrameCheckSequencein interfaceEthernetHeader- Returns:
- int Returns a int
-
setFrameCheckSequence
public void setFrameCheckSequence(int frameCheckSequence) - Specified by:
setFrameCheckSequencein interfaceEthernetHeader- Parameters:
frameCheckSequence- Takes in a parameter of frameCheckSequence
-
getFieldType
- Overrides:
getFieldTypein classHeaderImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classHeaderImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classHeaderImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classHeaderImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classHeaderImpl
-